package org.example.onlineEducation.dao;

import org.example.onlineEducation.entity.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    List<Permission> selectAllByRoleId(Integer roleId);

//    List<Permission> selectAllByRoleIds(List<Integer> roleIds);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);
}